﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNETX.Web.Authority;

namespace DotNETX.Authentication.Web.Demo.Validater
{
    public class UserAuthorityValidater : BaseUserAuthorityValidater
    {
        public override AuthorityValidateResult UserAuthorityValidate(HttpContext context, string userid)
        {
            // do something here, like save userstate in session
            return new AuthorityValidateResult() { Level = 1, Passable = true };
        }
    }
}